<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>运算符号</title>
	<script type="text/javascript">
	// var num1 = 5;
	// var num2 = 6;
	// var num3 = (num1>num2)?num1:num2;
	// alert(num3);
	// var num4=7,num5=5;
	// num4+=num5;
	// alert(num4)
	// var num6 = 10;
	// num7 = num6++;
	// alert(num6);
	// alert(num7);
	// var num8 = 90;
	// num9 = ++num8;
	// alert(num9);
	// alert(num8);
	// +字符串运算连接在一起的意思
	var name = "张三";
	var doing = "睡觉";
	sm =name + doing;
	alert(sm);
	name+=doing;
	alert(name);
	type=typeof(name);
	alert(type);
	var num1 = 5;
	var num2 = 6;
	var num3 = (num1>num2)?num1:num2;
	var num4 = (num1>4 && num1<10)?num1:num2;
	alert(num4);
	var num5 = (num1>10 || num1<10)?num1:num2;
	alert(num5);
	var num6 = (!num1==num2)?num1:num2;
	alert(num6);

	</script>
</head>
<body>
	
</body>
</html>